package com.cosmoplat.xikai.business.domain.dto.productPlan;


import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;


/**
 * @ClassName TaskDeliverDTO
 * @Description 任务下发
 * @Author wdf
 * @Date 2025/1/7
 */
@ApiModel(value = "任务下发")
@Data
public class TaskDeliverDTO {

    /**
     * 任务计划id
     */
    @ApiModelProperty(value = "id",  example = "1")
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;

    /**
     * 任务号
     */
    @ApiModelProperty(value = "任务号", example = "TASKNO001")
    @NotBlank(message = "任务号不为空")
    private String taskNo;


    /**
     * 任务生产状态：0:未开始 1:进行中 2:已完成  3:暂停
     **/
    @ApiModelProperty(value = "生产状态，值为:1:开工  3:暂停  4:重新开工", example = "0")
    private Integer taskPlanStatus;

    /**
     * 叫料状态：0:为准备 1:已完成
     **/
    @ApiModelProperty(value = "叫料状态，值为:0:为准备 1:已完成", example = "0")
    private Integer distributionStatus;

}
